#ifndef HEROPLANE_H
#define HEROPLANE_H
#include<QPixmap>
#include<QRect>
#include <QWidget>
#include<01Config.h>
#include<QRect>
#include<bullet.h>

class HeroPlane
{
    //Q_OBJECT
public:
    HeroPlane();
    //发射子弹
    void shoot();
    void shoot2();
    void shoot3();
    void shoot4();

    //设置飞机位置
    void setPOsition(int x,int y);

    //飞机资源  对象
    QPixmap m_Plane;

    //飞机坐标
    int m_x;
    int m_y;

    //飞机的矩形边框
    QRect m_Rect;

    //伤害
    int m_Hurt;

    //战机血量
    int m_Hero_Blood;
    //战机蓝条
    int m_HERO_Blue;

    //战机护盾
    QPixmap m_Shield;

    //护盾出场
    void Shield();
    //护盾位置
    int m_Shield_x;
    int m_Shield_y;
    //护盾状态
    bool m_shield_free;
    //护盾方框
    QRect m_Shield_rect;

    //弹匣
    Bullet m_bullets1[BULL_NUM];
    Bullet m_bullets2[BULL_NUM];
    Bullet m_bullets3[BULL_NUM];
    Bullet m_special_bullets[BULL_NUM2];
    Bullet m_special_bullets2[BULL_NUM3];
    Bullet m_special_bullets3[BULL_NUM3];

    //发射时间间隔
    int m_Recorder=0;
    int m_Recorder2=0;
    int m_Recorder3=0;
     int m_Recorder4=0;


    //加速子弹
    int time=0;

    //增加弹道
    int AddNum=1;






};

#endif // HEROPLANE_H
